import myaxios from "../MyAxios";
import BASEURL from "../BaseUrl"

const TCHYURL = BASEURL.TCHYURL
const vehicleApi = {
    /**查询车辆列表 待认证车辆列表 {auditStatus:0,portAddress:PLATFORM}*/
    // 待认证车辆列表:0  认证通过的车辆列表:1    //可传numberplate  vehicleType  certStatus 进行搜索
    queryList(params) {
        let url = TCHYURL + '/account/vehicle/list'
        return myaxios.get(url, params)
    },
    queryListUn(params) {
        let url = TCHYURL + '/account/vehicle/listUn'
        return myaxios.get(url, params)
    },
    queryListIng(params) {
        let url = TCHYURL + '/account/vehicle/listIng'
        return myaxios.get(url, params)
    },
    // 获取所有车辆种类
    getAllVehicleType() {
        let url = TCHYURL + '/account/vehicle/get_vehicle_type_list'
        return myaxios.get(url)
    },
    // 待认证车辆-详情    {vehicleId:1683719814604}
    getWaitAuditDetails(params) {
        let url = TCHYURL + '/account/vehicle/getDetails'
        return myaxios.get(url, params)
    },
    getWaitAuditDetails2(params) {
        let url = TCHYURL + '/account/vehicle/getDetails2'
        return myaxios.get(url, params)
    },
    // 认证通过 不通过
    VehicleCertified(params) {   //certStatus  auditFailReason vehicleId
        let url = TCHYURL + '/account/vehicle/certAudit'
        return myaxios.put(url, params)
    },
    //添加计费规则
    addBillingRules(params) {
        let url = TCHYURL + '/order/bill/addBillingRules'
        return myaxios.post(url, params)
    },

    //查询计费规则
    queryBillingRules(params) {
        let url = TCHYURL + '/order/bill/queryBillingRules'
        return myaxios.get(url, params)
    },

    //查询计费规则详情
    queryBillingRulesByBid(params) {
        let url = TCHYURL + '/order/bill/queryBillingRulesByBid'
        return myaxios.post(url, params)
    },
    //修改计费规则
    modifyBillRulesByBid(params) {
        let url = TCHYURL + '/order/bill/modifyBillRulesByBid'
        return myaxios.post(url, params)
    },
    //删除计费规则
    deleteBillRulesByBid(params) {
        let url = TCHYURL + '/order/bill/deleteBillRulesByBid'
        return myaxios.post(url, params)
    },

}
export default vehicleApi;